<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Register</title>
    </h:head>
    <h:body>
        <h:form>
            <h1>Registration new User</h1>
            <h:panelGrid columns="2">
                <h:outputLabel for="email" value="E-mail: "/>
                <h:inputText id="email" value="#{registerUIModel.email}"/>
                <h:outputLabel for="password" value="password"/>
                <h:inputText id="password" value="#{registerUIModel.password}"/>
                
            </h:panelGrid>
            <h:panelGrid columns="2">
                <h:button value="Home" outcome="index.xhtml"/>
                <h:commandButton value="Register" action="#{registerUIModel.registration()}"/>
            </h:panelGrid>
        </h:form>
    </h:body>
</html>

